let vm1=new Vue({
    el:"#articleAddMain",
    data:{
        articleMap:{
            articleTitle:null,
            articleContext:null,

            myInfo:{
                myId:null,
                myName:null,
            }
        },

    },
    methods:{
        publishContent:function () {
            this.articleMap.myInfo.myId =parent.layer.myId;
            this.articleMap.myInfo.myName =parent.layer.myName;
            axios({
                url:'article/publishArticle',
                method:'post',
                data:this.articleMap
            }).then(res=>{
                alert(res.data.message);
                if (res.data.message=="内容添加成功"){
                    let frameIndex = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(frameIndex)
                }
            }).catch(error=>{
                console.log(error)
            })
        },
    },
    created:function () {

    },
});